package com.codi.bus.core.dao.impl;

import com.codi.base.dao.v2.GeneratedBaseDaoImpl;
import com.codi.bus.core.dao.OneFundDao;
import com.codi.bus.core.dao.OnePortfolioDao;
import com.codi.bus.core.domain.OneFund;
import com.codi.bus.core.domain.OnePortfolio;
import org.springframework.stereotype.Repository;

/**
 * Created by asus on 2017/12/6.
 */
@Repository("onePortfolioDao")
public class OnePortfolioDaoImpl extends GeneratedBaseDaoImpl<OnePortfolio> implements OnePortfolioDao {
    @Override
    public Long insertByCode( OnePortfolio onePortfolio) {
        super.insert(this.generateStatement("insert"), onePortfolio);
        return onePortfolio.getOpOnePortfolioId();
    }

}
